﻿using System;
using System.Collections.Generic;
using System.Linq;
using Ongoal.Quotation.Common;
using SqlSugar;
namespace Ongoal.Quotation.Service.Model
{
    /// <summary>
    /// 组织机构实体类
    ///</summary>
    [SugarTable("T_Sys_Organize")]
    public class Organize : TreeBase<Organize>
    {
        /// <summary>
        /// 组织机构名称 
        ///</summary>
        [SugarColumn(ColumnName = "OrgName")]
        public string? OrgName { get; set; }
        /// <summary>
        /// 机构全称 
        ///</summary>
        [SugarColumn(ColumnName = "FullName")]
        public string? FullName { get; set; }
        /// <summary>
        /// 组织机构编码 
        ///</summary>
        [SugarColumn(ColumnName = "OrgCode")]
        public string? OrgCode { get; set; }
        /// <summary>
        /// 机构类型 
        ///</summary>
        [SugarColumn(ColumnName = "OrgType")]
        public int OrgType { get; set; }
        /// <summary>
        /// 排序字段 
        ///</summary>
        [SugarColumn(ColumnName = "OrderCode")]
        public int? OrderCode { get; set; }
        /// <summary>
        /// 是否可用(默认可用) 
        ///</summary>
        [SugarColumn(ColumnName = "Enable")]
        public int? Enable { get; set; }
        /// <summary>
        /// 机构Logo 
        ///</summary>
        [SugarColumn(ColumnName = "OrgLogo")]
        public string? OrgLogo { get; set; }
        /// <summary>
        /// 备注 
        ///</summary>
        [SugarColumn(ColumnName = "Remark")]
        public string? Remark { get; set; }

        /// <summary>
        /// IsLeafNode 
        ///</summary>
        [SugarColumn(ColumnName = "IsLeafNode")]
        public int? IsLeafNode { get; set; }

        /// <summary>
        /// 用户
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public dynamic UserList { get; set; }
    }
}
